home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Misc Servers / Zope.exe / ADDFACTORY.DTML < prev    next >
Encoding:
Text File  |  2000-06-20  |  1.8 KB  |  62 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
  2. <html lang="en"><head><title>Add an Object Factory</title></head>
  3. <body bgcolor="#FFFFFF" link="#000099" vlink="#555555" alink="#77003B">
  4.  
  5. <h2>Add an Object Factory</h2>
  6.  
  7. <dtml-var "HelpSys.HelpButton('Zope-Factory_Add.stx','OFSP')">
  8.  
  9. <P>A Factory allows you to place entries in the Zope Product add
  10. list.</P>
  11.  
  12. <P>In the form below the <EM>Add list name</EM> is the name under which
  13. your entry will appear in the Zope Product add list.
  14. The <EM>Method</EM> is the method that will be invoked when a
  15. user adds a new object.  This must be one of the objects in the
  16. product, typically a Document.
  17. </P>
  18.  
  19. <dtml-if objectIds>
  20. <form action="manage_addPrincipiaFactory" method="POST">
  21. <table cellspacing="2">
  22.  
  23.   <tr>
  24.     <th align="LEFT" valign="TOP">Id</th>
  25.     <td align="LEFT" valign="TOP"><input type="TEXT" name="id"
  26.      size="40"></td>
  27.     </tr>
  28.  
  29.   <tr>
  30.     <th align="LEFT" valign="TOP">Title</th>
  31.     <td align="LEFT" valign="TOP"><input type="TEXT" name="title"
  32.      size="40"></td>
  33.     </tr>
  34.   
  35.   <tr>
  36.     <th align="LEFT" valign="TOP">Add list name</th>
  37.     <td align="LEFT" valign="TOP"><input type="TEXT" name="object_type"
  38.      size="40"></td>
  39.     </tr>
  40.   
  41.   <tr><th ALIGN="LEFT">Method</th>
  42.       <td ALIGN="LEFT"><select name="initial">
  43.     <dtml-in objectItems>
  44.            <dtml-if "meta_type != 'Principia Factory'">
  45.          <option><dtml-var sequence-key></option>
  46.        </dtml-if>
  47.     </dtml-in>
  48.       </select></td></tr>
  49.  
  50.   <tr><td></td><td><br><input type="SUBMIT" value="Generate"></td></tr>
  51.  
  52. </table></form>
  53.       
  54. <dtml-else>
  55.  
  56. Before you can define a factory, you have to define one or more "methods", 
  57. such as Document or other objects that do the factory's work.
  58.  
  59. </dtml-if>
  60.  
  61. </body></html>
  62.